home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Windows / WindowLocation.h < prev    next >
Text File  |  1997-06-28  |  620b  |  31 lines

  1. // WindowLocation.h
  2.  
  3. #ifndef WindowLocation_h
  4. #define WindowLocation_h
  5.  
  6. #ifndef Rectangle_h
  7. #include "Rectangle.h"
  8. #endif
  9.  
  10. class WindowLocation
  11.   {
  12.     private:
  13.         PointObject location;
  14.         PointObject stop;
  15.         bool finished;
  16.         
  17.     public:
  18.         WindowLocation( Rectangle available, PointObject reasonableSize );
  19.         
  20.         bool Finished() const                            { return finished; }
  21.         bool Unfinished() const                            { return !finished; }
  22.         
  23.         void operator++();
  24.         void operator++(int)                                { operator++(); }
  25.         
  26.         const PointObject& operator*() const        { return location; }
  27.         const PointObject *operator->() const        { return &location; }
  28.   };
  29.  
  30. #endif
  31.